package org.yourscrum.util;

/**
 * @author Jettro Coenradie
 */
public class ChangedSortOfItems {
    private String movedItem;
    private String beforeItem;

    protected static ChangedSortOfItems movedToEnd(String movedItem) {
        return new ChangedSortOfItems(movedItem, "");
    }

    protected static ChangedSortOfItems nothingChanged() {
        return new ChangedSortOfItems("", "");
    }

    protected static ChangedSortOfItems movedBefore(String movedItem, String beforeItem) {
        return new ChangedSortOfItems(movedItem, beforeItem);
    }

    private ChangedSortOfItems(String movedItem, String beforeItem) {
        this.movedItem = movedItem;
        this.beforeItem = beforeItem;
    }

    public String movedItem() {
        return movedItem;
    }

    public String beforeItem() {
        return beforeItem;
    }
}
